home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFXMLSource.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  100 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFXMLSource.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFXMLSource_h__
  6. #define __gen_nsIRDFXMLSource_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIOutputStream_h__
  14. #include "nsIOutputStream.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIRDFXMLSource */
  23. #define NS_IRDFXMLSOURCE_IID_STR "4da56f10-99fe-11d2-8ebb-00805f29f370"
  24.  
  25. #define NS_IRDFXMLSOURCE_IID \
  26.   {0x4da56f10, 0x99fe, 0x11d2, \
  27.     { 0x8e, 0xbb, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}
  28.  
  29. class NS_NO_VTABLE nsIRDFXMLSource : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFXMLSOURCE_IID)
  33.  
  34.   /**
  35.      * Serialize the contents of the datasource to aStream.
  36.      * @param aStream the output stream the will recieve the
  37.      *   RDF/XML. Currently, the output stream need only
  38.      *   implement the |write()| method.
  39.      */
  40.   /* void Serialize (in nsIOutputStream aStream); */
  41.   NS_IMETHOD Serialize(nsIOutputStream *aStream) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSIRDFXMLSOURCE \
  47.   NS_IMETHOD Serialize(nsIOutputStream *aStream); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSIRDFXMLSOURCE(_to) \
  51.   NS_IMETHOD Serialize(nsIOutputStream *aStream) { return _to Serialize(aStream); } 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSIRDFXMLSOURCE(_to) \
  55.   NS_IMETHOD Serialize(nsIOutputStream *aStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->Serialize(aStream); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsRDFXMLSource : public nsIRDFXMLSource
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSIRDFXMLSOURCE
  66.  
  67.   nsRDFXMLSource();
  68.  
  69. private:
  70.   ~nsRDFXMLSource();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsRDFXMLSource, nsIRDFXMLSource)
  78.  
  79. nsRDFXMLSource::nsRDFXMLSource()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsRDFXMLSource::~nsRDFXMLSource()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* void Serialize (in nsIOutputStream aStream); */
  90. NS_IMETHODIMP nsRDFXMLSource::Serialize(nsIOutputStream *aStream)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* End of implementation class template. */
  96. #endif
  97.  
  98.  
  99. #endif /* __gen_nsIRDFXMLSource_h__ */
  100.